import i18n from '../../i18n/i18n'
export const tableOption = {
  border: true,
  selection: false,
  index: false,
  indexLabel: i18n.t('number'),
  stripe: true,
  menuAlign: 'center',
  menuWidth: 350,
  align: 'center',
  refreshBtn: true,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [{
    label: i18n.t('coupon.couponName'),
    prop: 'couponName',
    search: true
  }, {
    label: i18n.t('coupon.couponType'),
    prop: 'couponType',
    type: 'select',
    slot: true,
    dicData: [
      {
        value: 1,
        label: i18n.t('coupon.voucher')
      }, {
        value: 2,
        label: i18n.t('coupon.discountCoupon')
      }, {
        value: 3,
        label: i18n.t('coupon.excCerti')
      }
    ]
  }, {
    label: i18n.t('coupon.startTime'),
    prop: 'startTime'
  }, {
    label: i18n.t('coupon.endTime'),
    prop: 'endTime'
  }, {
    label: i18n.t('coupon.expStatus'),
    prop: 'overdueStatus',
    search: true,
    type: 'select',
    slot: true,
    dicData: [
      {
        value: 1,
        label: i18n.t('coupon.notExp')
      }, {
        value: 0,
        label: i18n.t('coupon.exp')
      }
    ]
  }, {
    label: i18n.t('coupon.launchStatus'),
    prop: 'putonStatus',
    search: true,
    type: 'select',
    slot: true,
    dicData: [
      {
        value: 1,
        label: i18n.t('coupon.launched')
      }, {
        value: 0,
        label: i18n.t('coupon.waitLaunch')
      }, {
        value: -1,
        label: i18n.t('coupon.cancelLaunch')
      }
    ]
  }, {
    label: i18n.t('coupon.stock'),
    prop: 'stocks'
  }, {
    label: i18n.t('dataAnaly.numberOfRe'),
    prop: 'takeNum'
  }, {
    label: i18n.t('dataAnaly.microMallUsage'),
    prop: 'useNum'
  }]
}
